<?php $this->page_title = 'Permitions'; ?>
<?php

$form = $this->form('grid-form')
	->grid('permitions',null,array(
			'id' => 'Name',
		),$this->users()->find_permitions(),array(
			'toolbar' => array(
				'add' => array('label' => 'New permition', 
					'action' => '/user/add-permition', 'method' => 'link'),
			),
			'buttons' => array(
				'modify' => array('label' => 'Edit', 
					'action' => '/user/edit/{#}', 'method' => 'link'),
				'delete' => array('label' => 'Delete', 'action' => '/user/delete/{#}',
					'confirm' => 'Are you sure you want to remove the user permanently?'),
			),
			'select' => true,
		))
	->render();
